MKDIR:=mkdir -p
OUTDIR:=build
APP:=$(OUTDIR)/app
ZCC:=zcc +z80 -vn -clib=new -O3 -lm

all: $(OUTDIR) $(APP)

$(OUTDIR):
	$(MKDIR) $@

$(APP):
	$(ZCC) @src.lst -o $@ -create-app -pragma-include:pragma.inc

.PHONY: clean
clean:
	rm -rf $(OUTDIR)/*
